#!coding=utf-8
from park.models import LogManage

def triggerOpLog(name,desc,handler):
	try:
		log = LogManage(name=name,desc=desc,handler=handler)
		log.save()

		return True,'ok'
	except Exception,e:
		return False,e.message